<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<script type="text/javascript">
function toUpdate(){
	var array = [];
	var url = "<c:url value='/admin/wish/type/update.do' />";
	sns.toUpdate(url, array, 'ck_wishtypes','typeid');
}
</script>
<div class="bu">
<button onclick="location.href='<c:url value="/admin/wish/type/create.do"/>'" class="btn3_mouseout" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" title="Create"><fmt:message key="common.create"/></button>&nbsp;&nbsp;
<button onclick="toUpdate()" class="btn3_mouseout" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"title="UPDATE"><fmt:message key="common.update"/></button>&nbsp;&nbsp;
</div>
<div>
<table id="t_wishtype_list" width="100%"  border="0" cellpadding="0" cellspacing="0" class="pub_list01">
	<thead>
		<tr>
			<th width="50px" class="tdCenter">
			</th>
			<th width="75px" class="tdCenter">类型名称</th>
			<th width="75px" class="tdCenter">小图片大小(px)</th>
			<th width="75px" class="tdCenter">最少字符</th>
			<th width="75px" class="tdCenter">最多字符</th>
			<th width="75px" class="tdCenter">每页最多显示几个WISH</th>
			<th width="75px" class="tdCenter">当前坐标数量</th>
			<th width="75px" class="tdCenter">此类型一共多少WISH</th>
			<th width="75px" class="tdCenter">当前激活数</th>
			<th width="75px" class="tdCenter">历史总算</th>
			<th width="75px" class="tdCenter">是否有效</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="wtype" items="${page.items}" varStatus="status">
		<tr>
			<td class="tdCenter">
				<input type="checkbox" name="ck_wishtypes" id="ck_<c:out value='${wtype.typeid}' />" value="${wtype.typeid}"></input>
			</td>
			<td class="tdCenter">
				<c:out value="${wtype.name}"></c:out>
			</td>
			<td class="tdCenter">
				<c:out value="${wtype.imgSize}"></c:out>
			</td>
			<td class="tdCenter">
				<c:out value="${wtype.charsMin}"></c:out>
			</td>
			<td class="tdCenter">
				<c:out value="${wtype.charsMax}"></c:out>
			</td>
			<td class="tdCenter">
				<c:out value="${wtype.threshold}"></c:out>
			</td>
			<td class="tdCenter">
				<c:out value="${wtype.positionAmount}"></c:out>
			</td>
			<td class="tdCenter">
				<c:out value="${wtype.capacity}"></c:out>
			</td>
			<td class="tdCenter">
				<c:out value="${wtype.activityAmount}"></c:out>
			</td>
			<td class="tdCenter">
				<c:out value="${wtype.totalAmount}"></c:out>
			</td>
			<td class="tdCenter">
				<c:if test="${wtype.enabled == 0}">
					<fmt:message key="common.notenabled"/>
				</c:if>
				<c:if test="${wtype.enabled == 1}">
					<fmt:message key="common.enabled"/>
				</c:if>
			</td>
		</tr>
		</c:forEach>
	</tbody>
</table>
<jsp:include page="/common/pager.jsp" />
</div>
<br/>